package com.bw.UDF;

import ch.hsr.geohash.GeoHash;
import org.apache.hadoop.hive.ql.exec.UDF;

public class MyUDF extends UDF {
    public MyUDF(){
    }
    public String evaluate(double jd,double wd,int len){
        GeoHash geoHash = GeoHash.withCharacterPrecision(wd, jd, 6);
        return  geoHash.toBase32();
    }
}
